<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<%@ include file="/common/import.jsp" %>
<script>
  var thsTitle = "标的报价";
  var objName = "session";
</script>
</head>
<body>
<!-- 正文开始 -->
<form id="addItemForm">
	<input type="hidden" name="itemId" id="itemId" value="${item.itemId }">
	<table class="info" cellspacing="1" cellpadding="0">
		<tr>
			<th>标的名称：</th>
			<td colspan=3>${item.itemName }</td>
		</tr>
		<tr>
			<th>起始价格：</th>
			<td>${item.firstValue }</td>
			<th>加价幅度：</th>
			<td>${item.incrementValue }</td>
		</tr>
		<tr>
			<th>最新价格：</th>
			<td>7000</td>
			<th>最新报价人：</th>
			<td>dyhou</td>
		</tr>
		<tr>
			<th>报价次数：</th>
			<td>7</td>
			<th>最新报价时间：</th>
			<td>2016-03-17 12：12：23</td>
		</tr>		
		<tr>
			<th>所在期：</th>
			<td>自由竞价期</td>
			<th>剩余时间：</th>
			<td>67秒</td>
		</tr>
		
		<tr>			
			<td colspan="4" style="text-align:center;">
				<a class="easyui-linkbutton" iconCls="icon-add" onclick="baojia();">+1000</a>
				<a class="easyui-linkbutton" iconCls="icon-add" onclick="baojia();">+2000</a>
				<a class="easyui-linkbutton" iconCls="icon-add" onclick="baojia();">+3000</a>
				<a class="easyui-linkbutton" iconCls="icon-add" onclick="baojia();">+4000</a>
				<a class="easyui-linkbutton" iconCls="icon-add" onclick="baojia();">+5000</a>
			</td>
		</tr>
	</table>
	
	<table class="info" cellspacing="1" cellpadding="0">
		<tr>
			<th width='5%'>报价序号</th>
			<th width='20%'>报价人</th>
			<th width='20%'>报价价格</th>	
			<th width='20%'>报价时间</th>
			<th width='20%'>增幅</th>
		</tr>
		<tr>
			<td>7</td>
			<td>dyhou</td>
			<td>7000</td>	
			<td>2016-03-17 12：12：23</td>
			<td>1000</td>
		</tr>
		<tr>
			<td>6</td>
			<td>xhe</td>
			<td>6000</td>	
			<td>2016-03-17 12：12：21</td>
			<td>1000</td>
		</tr>
		<tr>
			<td>5</td>
			<td>dyhou</td>
			<td>5000</td>	
			<td>2016-03-17 12：12：20</td>
			<td>1000</td>
		</tr>
		<tr>
			<td>4</td>
			<td>xhe</td>
			<td>4000</td>	
			<td>2016-03-17 12：12：13</td>
			<td>1000</td>
		</tr>
	</table>
	</form>	
<!-- 正文结束 -->
<%//@ include file="/common/top.jsp" %>
</body>
</html>
<script>
function baojia(){
	var itemId = $("#itemId").val();
	var price = 200;
	if(confirm("确实要报价吗？")){
		baojiaSubmit(itemId,price);
	}
}
//更新后回调方法
function baojiaCallBack(flag,objName){
	if(flag=="T"){
		alert("报价成功！");
	}else{
		alert("报价失败！");
	}
}
</script>